package com.cxso.example.response.ocr;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@Schema(description = "ocr - 识别道路运输从业资格证")
public class OcrQualificationCertificateResponse {


    @Schema(description = "身份证号（非必有，依赖对应从业资格证板式）", example = "")
    private String idNumber;

    @Schema(description = "考核时间（非必有，依赖对应从业资格证板式）", example = "")
    private String assessmentDate;

    @Schema(description = "从业资格证号", example = "37112219840316681X")
    private String certificateNumber;

    @Schema(description = "档案号（非必有，依赖对应从业资格证板式）", example = "371122017327")
    private String fileNumber;

    @Schema(description = "福路通号（非必有，依赖对应从业资格证板式）", example = "")
    private String unionCardNumber;

    @Schema(description = "继续教育信息（非必有，依赖对应从业资格证板式）", example = "")
    private String continuingEducationInfo;

    @Schema(description = "性别（非必有，依赖对应从业资格证板式）", example = "男性")
    private String sex;

    @Schema(description = "联系电话（非必有，依赖对应从业资格证板式）", example = "")
    private String phoneNumber;

    @Schema(description = "登记时间（非必有，依赖对应从业资格证板式）", example = "")
    private String registrationDate;

    @Schema(description = "单位（非必有，依赖对应从业资格证板式）", example = "")
    private String workUnit;

    @Schema(description = "诚信考核信息（非必有，依赖对应从业资格证板式）", example = "")
    private String integrityAssessmentInfo;

    @Schema(description = "国籍（非必有，依赖对应从业资格证板式）", example = "中国")
    private String nationality;

    @Schema(description = "姓名", example = "万修峰")
    private String name;

    @Schema(description = "住址", example = "山东省莒县库山乡万家山村410号")
    private String address;

    @Schema(description = "准驾车型（非必有，依赖对应从业资格证板式）", example = "以驾驶证准驾车型为准")
    private String drivingClass;

    @Schema(description = "发证机关（非必有，依赖对应从业资格证板式）", example = "")
    private String issuingAuthority;

    @Schema(description = "出生日期（非必有，依赖对应从业资格证板式）", example = "1984-03-16")
    private String birthDate;

    @Schema(description = "从业资格列表", example = "2019-12-12")
    private List<QualificationCategoryRes> qualificationCategoryList = null;

    @Getter
    @Setter
    public static class QualificationCategoryRes {

        @Schema(description = "诚信考核信息（非必有，依赖对应从业资格证板式）", example = "经营性道路货物运输驾驶员")
        private String category;
        @Schema(description = "初次领证日期（非必有，依赖对应从业资格证板式）", example = "2021年09月18日")
        private String initialIssueDate;
        @Schema(description = "有效起始日期（非必有，依赖对应从业资格证板式）", example = "2021年09月18日")
        private String issueDate;
        @Schema(description = "有效期至", example = "至2027年09月17日")
        private String expiryDate;
    }

}
